// mobile-login.dto.ts
import { IsNotEmpty, IsString } from 'class-validator';
import { LoginDto } from './login.dto';
import { ApiProperty } from '@nestjs/swagger';

export class MobileLoginDto implements LoginDto {
    @IsNotEmpty()
    @IsString()
    @ApiProperty()
    username: string;

    @IsNotEmpty()
    @IsString()
    @ApiProperty()
    mobile: string;

    @IsNotEmpty()
    @IsString()
    @ApiProperty()
    verifyCode: string;
}
